﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Smartee.Modelling.Shapes
{
	public class Line : FilledShape
	{
        public Line(Color color, Metric lineWidth, int x1, int y1, int x2, int y2)
            : base(color, lineWidth, DefaultFillColor)
        {
            _point1 = new Point(x1, y1);
            _point2 = new Point(x2, y2);
        }

        public Line(int x1, int y1, int x2, int y2)
            : this(DefaultColor, Metric.Default, x1, y1, x2, y2)
        {
        }
        
        private Point _point1;
        private Point _point2;

        public Point P1 { get { return _point1; } }
        public Point P2 { get { return _point2; } }

        public override void Accept(IVisitor visitor)
        {
            visitor.Visit(this);
        }
    }
}
